@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

body {
    background-color: #FFF9FA;
    background-image: url('https://www.transparenttextures.com/patterns/flower-pattern.png');
}

.invitation-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.photo-container:hover img {
    transform: scale(1.05);
}

.photo-container img {
    transition: transform 0.5s ease;
}

.heart {
    position: absolute;
    color: #D8A8C6;
    opacity: 0;
    transform: scale(0);
    animation: heartPop 1.5s ease-in-out infinite;
}

@keyframes heartPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.date-box {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* 音乐控制按钮样式 */
.music-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 音乐进度条功能已移除 */

.music-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #D8A8C6;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(216, 168, 198, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.music-btn:hover {
    background-color: #8B4C7D;
    transform: scale(1.1);
}

/* 保留原有的脉冲阴影动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(216, 168, 198, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(216, 168, 198, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(216, 168, 198, 0.5);
    }
}

/* 为播放按钮添加缩放动画 */
@keyframes playBtnPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 音量控制样式 */
.volume-control {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 120px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.volume-control.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

input[type="range"] {
    width: 100%;
    accent-color: #D8A8C6;
}

/* 图片查看器模态框样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-viewer.active .image-viewer-content {
    transform: scale(1);
}

.image-viewer img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.image-viewer-close:hover {
    opacity: 1;
}

/* 图片容器样式增强 - 添加点击提示 */
.photo-container {
    cursor: pointer;
}

.photo-container::after {
    content: '点击放大';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover::after {
    opacity: 1;
}

/* 自定义工具类 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.card-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.transition-transform-slow {
    transition: transform 0.8s ease-in-out;
}